package com.onlinelearn.userservice.model;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import java.util.List;

@Entity
@DiscriminatorValue("STUDENT")
public class Student extends User {
    @OneToMany
    private List<Course> selectedCourses;

    @Override
    public void register() {
        // 学生注册逻辑
    }

    @Override
    public void login() {
        // 学生登录逻辑
    }

    @Override
    public void updateProfile() {
        // 更新学生资料
    }

    public void selectCourse(Course course) {
        // 选课逻辑
    }

    public void submitHomework(Homework homework, File file) {
        // 提交作业
    }
} 